package com.fly.swt.window;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class widgetTest
{
    
    public static void main(String[] args)
    {
        final Display display = new Display();
        final Shell toplevelShell = new Shell(display);
        toplevelShell.setText("TopLevel.Titelzeile");
        toplevelShell.open();
        final Shell dialogShell = new Shell(toplevelShell);
        dialogShell.setText("Dialog.Titelzeile");
        dialogShell.open();
        while (!toplevelShell.isDisposed())
        {
            if (!display.readAndDispatch())
            {
                display.sleep();
            }
        }
    }
}